package com.hibuy.pc.mapper.shiro;

import com.hibuy.pc.model.shiro.Role;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by admin on 2017/12/28.
 */
@Mapper
public interface RoleMapper {
    @Select("SELECT * FROM sys_role")
    List<Role> getRoles();

    @Insert("INSERT INTO sys_role (name,type) VALUES (name,type)")
    Role addRoles(Role role);
}
